﻿
<div>
    <form name="callPoliceCreateOrEditForm" role="form" novalidate class="form-validation">
        <div class="modal-header">
            <h4 class="modal-title">
                <span>详情信息</span>
            </h4>
        </div>
        <div class="modal-body">

            <div class="form-group form-md-line-input form-md-floating-label no-hint">
                <select name="CallTypeID" class="form-control edited ng-pristine ng-valid ng-not-empty ng-touched" ng-model="vm.callPolice.callTypeID" ng-change="vm.callTypeChange(vm.callPolice.callTypeID)" required>
                    <option ng-repeat="x in vm.callTypeList" value="{{x.id}}" ng-selected="vm.callPolice.callTypeID==x.id">{{x.title}}</option>
                </select>
                <label>报警方式</label>
            </div>

            <div class="form-group form-md-line-input form-md-floating-label no-hint" ng-show="vm.showAudio">
                <label>音频</label>
                <audio controls="controls" ng-src="{{vm.fileUrl(vm.callPolice.fileUrl)}}"></audio>
            </div>

            <div class="form-group form-md-line-input form-md-floating-label no-hint" ng-show="vm.showVideo">
                <label>视频</label>
                <video ng-src="{{vm.fileUrl(vm.callPolice.fileUrl)}}" controls="controls"></video>
            </div>

            <div class="form-group form-md-line-input form-md-floating-label no-hint">
                <input type="text" class="form-control" name="Name" ng-class="{'edited':vm.callPolice.name}" ng-model="vm.callPolice.name" maxlength="100" required />
                <label>报警人</label>
            </div>

            <div class="form-group form-md-line-input form-md-floating-label no-hint">
                <input type="text" class="form-control" name="PhoneNumber" ng-class="{'edited':vm.callPolice.phoneNumber}" ng-model="vm.callPolice.phoneNumber" maxlength="100" required />
                <label>手机号</label>
            </div>

            <div class="form-group form-md-line-input form-md-floating-label no-hint">
                <input type="text" class="form-control" name="XPoint" ng-class="{'edited':vm.callPolice.xPoint}" ng-model="vm.callPolice.xPoint" maxlength="100" required />
                <label>@L("XPoint")</label>
            </div>

            <div class="form-group form-md-line-input form-md-floating-label no-hint">
                <input type="text" class="form-control" name="YPoint" ng-class="{'edited':vm.callPolice.yPoint}" ng-model="vm.callPolice.yPoint" maxlength="100" required />
                <label>@L("YPoint")</label>
            </div>

            <div class="form-group form-md-line-input form-md-floating-label no-hint">
                <textarea auto-focus class="form-control" ng-class="{'edited':vm.callPolice.address}" rows="4" ng-model="vm.callPolice.address"></textarea>
                <label>地址</label>
            </div>

            <div class="form-group form-md-line-input form-md-floating-label no-hint" ng-show="false">
                <input type="text" class="form-control" name="Status" ng-class="{'edited':vm.callPolice.status}" ng-model="vm.callPolice.status" required />
                <label>状态</label>
                <span class="help-block">     @L("Status")@L("MustBe_Required")</span>
            </div>

            <div class="form-group form-md-line-input form-md-floating-label no-hint" ng-show="vm.showDetail">
                <textarea auto-focus class="form-control" ng-class="{'edited':vm.callPolice.remarks}" rows="4" ng-model="vm.callPolice.remarks"></textarea>
                <label>备注</label>
            </div>

            <div class="form-group form-md-line-input form-md-floating-label no-hint">
                <textarea auto-focus class="form-control" ng-class="{'edited':vm.callPolice.handleSuggestion}" rows="4" ng-model="vm.callPolice.handleSuggestion"></textarea>
                <label>处理意见</label>
            </div>

            <div class="form-group form-md-line-input form-md-floating-label no-hint">
                <textarea auto-focus class="form-control" ng-class="{'edited':vm.callPolice.closedSuggestion}" rows="4" ng-model="vm.callPolice.closedSuggestion"></textarea>
                <label>结案意见</label>
            </div>




        </div>
        <div class="modal-footer">
            <button ng-disabled="vm.saving" type="button" class="btn btn-default" ng-click="vm.cancel()">@L("Cancel")</button>
        </div>
    </form>
</div>